import request from '../plugins/request.js'

export const getCurrentUser = async ()=>{
    // 不存在则从数据库获取
    const result = await request.get('/user/current');
    const {code , data} = result
    if (code === 200 && data) {
        return data;
    }
    return null;
}


